import layout from "@/layout";

const system = {
    path: '/system',
    name: 'system',
    exact: true,
    component: layout,
    meta: {
        title: '系统管理'
    },
    children: [
        {
            path: '/system/menu',
            name: 'menu',
            exact: true,
            meta: {
                title: '菜单管理'
            },
            component: () => import('../../views/system/menu/index.vue'),


        }, {
            path: '/system/menu/detail',
            name: 'detail',
            exact: true,
            meta: {
                title: '菜单详情'
            },
            //匹配到三级路由之前就已经匹配到二级路由了，我理解你需要的应该是别的的二级路由...
            component: () => import('../../views/system/menu/components/create.vue'),
        }, {
            path: '/system/menu/create',
            name: 'create',
            exact: true,
            meta: {
                title: '菜单创建'
            },
            //匹配到三级路由之前就已经匹配到二级路由了，我理解你需要的应该是别的的二级路由...
            component: () => import('../../views/system/menu/components/create.vue'),
        }, {
            path: '/system/menu/update',
            name: 'update',
            exact: true,
            meta: {
                title: '菜单更新'
            },
            //匹配到三级路由之前就已经匹配到二级路由了，我理解你需要的应该是别的的二级路由...
            component: () => import('../../views/system/menu/components/create.vue'),
        }
    ]
}


export default system